package com.boatAnchorAssistant.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.boatAnchorAssistant.pojo.entity.DataDictionary;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

    import com.boatAnchorAssistant.pojo.dto.dataDictionary.SelectDataDictionaryDto;
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
@Repository
public interface DataDictionaryMapper extends BaseMapper< DataDictionary > {

    /**
    * 搜索数据字典
    * @param dto
    * @return
    */
    Page< DataDictionary > selectDataDictionary(SelectDataDictionaryDto dto);


    /**
     * 获取排序最后的字典
     * @param type
     * @return
     */
    DataDictionary getLastDisplay(@Param("type") Long type);


    /**
     * 获取某个排序之后的所有字典
     * @param type
     * @param displayOrder
     * @return
     */
    List<DataDictionary> getAfterListByOrder(@Param("type") Long type, @Param("displayOrder") Integer displayOrder);

}